<?php
// +-------------------------------------------------------------------
// |
// +-------------------------------------------------------------------
// | Copyright (c) 2009-2016 All rights reserved.
// +-------------------------------------------------------------------
namespace Service\Api\V1;

use Think\Exception;

class FeedbackSubmit
{
    public $login = true; //是否需要登录才能访问该接口
    public $title = "意见反馈";
    public $group = '反馈';
    public $desc = "";

    public $input = [
        'content' => 'required;label=反馈内容',
    ];

    public $output = [

    ];

    public function run($param, $uid)
    {
        M('eyes_feedback')->add([
            'uid' => $uid,
            'content' => $param['content'],
        ]);
        return [];
    }
}